Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Google Pay Version and add totalPriceLabel #809

Merged
merged 4 commits into from
Oct 23, 2023
Merged

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

  • Update play-services-wallet dependency to latest
  • Add totalPriceLabel parameter to GooglePayRequest

Checklist

  • Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner October 19, 2023 21:18
@@ -148,7 +148,7 @@ public static boolean isGooglePayEmailRequired(Context context) {
}

public static String getGooglePayCurrency(Context context) {
return getPreferences(context).getString("google_pay_currency", "USD");
return getPreferences(context).getString("google_pay_currency", "EUR");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General q, is there a reason we want to set this to EUR for the demo vs USD?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was working to resolve this long-standing merchant request #321 but in testing discovered that the total price label seems to be visible depending on currency code. I reached out to Google Pay integration support to confirm which countries/currencies it should be visible for, so we can provide a definitive answer. For now, I figured it was better for demo if the label is visible, so I changed it to EUR as default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, interesting that it's only available for certain currency codes. That makes sense though - thanks for the explanation!

@sarahkoop sarahkoop merged commit 96e7a0c into main Oct 23, 2023
2 checks passed
@sarahkoop sarahkoop deleted the update_google_pay branch October 23, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants